{include file="public/header" /} 
		<title>编辑栏目</title>
	</head>

	<body>
		<nav class="breadcrumb">
			<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 内容管理 <span class="c-gray en ">&gt;</span> <span class=" ">编辑分类</span>

			<a class=" btn btn-secondary radius" href="{:url('admin/cate/index')}" style="line-height:1.6em;margin-left:500px;margin-top:-3px;"title="分类管理">栏目列表</a>
			<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px;float:right;" href="javascript:location.replace(location.href);" title="刷新">
				<i class="Hui-iconfont">&#xe68f;</i>
			</a>
		</nav>
		<div class="page-container">
			<form action="{:url('admin/cate/edit')}" method="post" class="form form-horizontal" id="form-user-add">
				<input type="hidden" name="cid" id="" value="{$oneData['cid']}" />
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
					<span class="c-red">*</span>
					栏目名称：
					</label>
					<div class="formControls col-xs-6 col-sm-6">
						<input type="text" class="input-text" value="{$oneData['cname']}" placeholder="" id="user-name" name="cname">
					</div>
				</div>
				
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
					<span class="c-red">*</span>
					所属栏目：
					</label>
					<div class="formControls col-xs-6 col-sm-6">
						<span class="select-box">
					      <select class="select" size="1" name="pid">
					        <option value="0" {if condition="($oneData['cid'] == 0)"}selected="selected"  {/if}>顶级栏目</option>
					        {foreach name="data" item="v"}
					           <option value="{$v['cid']}" {if condition="($v['cid'] == $oneData['pid'])"}selected="selected"  {/if} {$v['_html']}>{$v['_cname']}</option>
					        {/foreach}
					      </select>
					    </span>
					</div>
				</div>
                 <div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						链接：
					</label>
					<div class="formControls col-xs-6 col-sm-6">
						<input type="text" class="input-text" value="{$oneData['link']}" placeholder="样式为:ywjs/index" id="user-name" name="link">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						栏目排序：
					</label>
					<div class="formControls col-xs-6 col-sm-6">
						<input type="text" class="input-text" value="{$oneData['sort']}" placeholder="数值越小越靠前" id="user-name" name="sort">
					</div>
				</div>
				<div class="row cl">
					<div class="col-9 col-offset-2">
						<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
					</div>
				</div>
			</form>
		</div>
{include file="public/footer" /} 

		<!--请在下方写此页面业务相关的脚本-->
		<script type="text/javascript" src="__STATIC__/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
		<script type="text/javascript" src="__STATIC__/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
		<script type="text/javascript" src="__STATIC__/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
		<script type="text/javascript">
			$(function() {

			});
		</script>
	</body>

</html>